package com.ailargemodel.mapper;

import com.ailargemodel.pojo.Questtion;
import com.ailargemodel.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 喜洋洋
* @description 针对表【questtion(存储学生的问题,以及AI的回答)】的数据库操作Mapper
* @createDate 2024-07-26 23:34:10
* @Entity com.ailargemodel.pojo.Questtion
*/
@Mapper
public interface QuesttionMapper extends BaseMapper<Questtion> {

    Questtion selectByStudyIdQuesttion(String studyId);

    List<Questtion> selectQuestionList(@Param("userStudyId") String userStudyId);

    void add(@Param("questtion") Questtion questtion);


    int selectMaxConversationId(@Param("studyId") String studyId);

    int selectNumsByLoginUser(@Param("loginUser") User loginUser);
}




